use leptos::prelude::{RwSignal, provide_context};
use thaw::Theme;

pub struct ThemeManager;

impl ThemeManager {
    pub fn provide_theme() -> RwSignal<Theme> {
        let theme = RwSignal::new(Theme::light());
        provide_context(theme);
        theme
    }
}
